OpenGL and VTK interface for .NET

نویسندگان

  • Ivo HANÁK
  • Milan FRANK
  • Václav SKALA
چکیده

VTK (visualization toolkit) is a large and useful object oriented library for data visualization. The current version (4.0) is also distributed for Win32 platform by means of dynamic linked libraries. Its native language is C++. An interface for Java, Python and TCL exists. These languages provide some subset of the VTK functionality only. Therefore the best use is with C++. OpenGL is well known library for graphics output used in large scale of applications. Interface and behavior of the library is defined in specifications available to wild public. Inner implementation of the interface is matter of operating system and/or graphics hardware providers. Currently existing interface implementations are ready to use within various programming languages. There is necessary to automate the process of wrap-class creation because of the VTK size (more then 700 classes). This process consists of two parts parsing of C++ headers and generating of appropriate wrap-classes. The parser is distributed with VTK and it is used to generate Java, TCL and Python interfaces and so it is possible to use it in the case of C#. It is not possible for the library user to use inheritance and polymorphism when using the manner described above. A possible way is to use two-level wrapping. The level-one wrap-class is unmanaged and provides calling of managed virtual methods and makes protected methods accessible for level-two wrap-class where the direct inheritance is used. The level-two wrap-class is managed and has the same functionality as described above. One of the aims of this work is to find some way for straightforward use of VTK in C#. It has been done by means of wrap-classes written in C++ Managed Extension. Each VTK class has its own wrap-class. This wrapclass is managed and provides access into methods of unmanaged VTK class. Data conversion and memory management are also matters of wrap-class. Second aim of this work is to create an OpenGL port to .NET environment by wrapping an existing interface. The goal of this part is to compare it with already existing OpenGL interface implementation called CsGL. This interface is fully functional and it is based on the similar principles as of this work. This work tries to go a little bit further to increase programming safety and user's comfort. The presented paper is an introduction and description of this work's approach. The goal of this work is to try to find a reasonable way of VTK and OpenGL porting into .NET environment.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Porting Visualization Toolkit to OpenGL ES 2.0 and iPad

Visualization Toolkit (VTK) is an open source, cross-­‐platform library for visualization, 3D graphics and image processing, written in C++ and OpenGL. In this report we investigate how VTK can be extended and modified to add support for the iPad. In particular the ...

متن کامل

Teaching 3D Modeling and Visualization using the Visualization Toolkit

In the last two years, we have been using the Visualization Toolkit (VTK) as a tool for teaching “3D Modeling and Visualization”, an elective course offered to Computer Engineering students. Students start by using OpenGL and, afterwards, use VTK in half of their lab classes, in order to accomplish some tasks and acquire knowledge on its features and functionalities. They are also required to d...

متن کامل

An Implementation of Curvilinear Reformatting on VTK

This report presents an implementation of curvilinear reformatting tool using VTK and OpenGL on the platform Mac. This task was performed in the Calgary Image Processing and Analysis Centre (CIPAC) at University of Calgary within the cooperation program between CIPAC and the Interactive Visualization Group (IVG) at Unicamp.

متن کامل

vjVTK: a toolkit for interactive visualization in Virtual Reality

vjVTK is a small toolkit enabling the use of the Visualization ToolKit (VTK) natively within the VRJuggler Virtual Reality framework. The toolkit enables a departure from the traditional visualization calculation-conversionimmersive viewing cycle. vjVTK leverages the OpenGL capabilities of VTK to allow it to run as a native graphics generation tool within the VRJuggler framework. This removes t...

متن کامل

Teaching 3D modelling and visualization using VTK

In the last two years, we have been using the Visualization Toolkit (VTK) as a tool for teaching ‘‘3D Modelling and Visualization’’, an elective course offered to Computer Engineering students. Students start by using OpenGL and, afterwards, use VTK in half of their lab classes, in order to accomplish some tasks and acquire knowledge on its features and functionalities. They are also required t...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2003